package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.common.dto.SaveMealDto;
import com.itheima.reggie.common.dto.SetmealDishFrontDto;
import com.itheima.reggie.common.dto.SetmealListDto;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.Setmeal;
import com.itheima.reggie.entity.SetmealDish;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {
    Integer selectByCategoryId(Long id);

    R<String> add(SaveMealDto saveMealDto);

    R<Page<SetmealListDto>> pageBySetmeal(Long page, Long pageSize, String name);

    R<String> deleteById(List<Long> ids);

    R<SaveMealDto> findByIdSetmeal(Long id);

    R<String> updateSetmeal(SaveMealDto saveMealDto);

    R<String> stopSell(List<Long> ids);

    R<String> startSell(List<Long> ids);

    R<List<Setmeal>> getSetmealList(Long categoryId, Integer status);

    R<List<Dish>> getSetmealDishList(Long id);
}